package org.geektimes.projects.user.management.mbean;

import org.geektimes.projects.user.domain.User;

import javax.management.MBeanInfo;
import javax.management.StandardMBean;

/**
 * @Author: jipeng
 * @Description:
 * @Date: Created in 2021/3/16 6:45
 */
public class StandardMBeanDemo {

    public static void main(String[] args) throws Exception {


        //将静态的 mbean 接口转化成 DynamicMBean
        StandardMBean standardMBean = new StandardMBean(new UserManager(new User()),UserManagerMBean.class);

        MBeanInfo mBeanInfo = standardMBean.getMBeanInfo();

        System.out.println(mBeanInfo);



    }
}
